import { Column, Entity } from "typeorm"
import { BaseEntity } from "../../base/entity/base"
import { CommonAuditStatus } from "../../../interface"

@Entity('provider_team_join', { comment: '服务人员加入团队请求' })
export class ProviderTeamJoinEntity extends BaseEntity {
    @Column({ comment: '服务人员ID', nullable: false })
    providerId: number

    @Column({ comment: '团队ID', nullable: false })
    teamId: number

    @Column({ comment: '请求状态', type: 'enum', enum: CommonAuditStatus, default: CommonAuditStatus.PENDING })
    status: CommonAuditStatus

    @Column({ comment: '拒绝原因', nullable: true })
    rejectReason?: string
}